package com.bsc.rtc.lib.libraries.ProxyDemo.MoveProxy;

public class MonitorUtil {
    private static ThreadLocal<Long> t1=new ThreadLocal<>();
    public static void start(){
        t1.set(System.currentTimeMillis());
    }
    public static void finish(String methodName){
        long finishtime=System.currentTimeMillis();
        System.out.println(methodName+"执行"+(finishtime-t1.get()));
    }
}
